<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>背景</title>
    <style>
        div{
            background: palevioletred;
            width: 200px;
            height: 200px;
        }
        .d1{
            background: #8d2fff;
            width: 150px;
            height: 150px;
        }
        h1{
            background: papayawhip;
        }
        h2{
            background: darkblue;
        }
        h3{
            color: brown;
        }
    </style>
</head>
<body>
    <div></div>
    <br>
    <div class="d1"></div>
    <h1>黄色</h1>
    <h2>绿色</h2>
    <h3>红色</h3>
</body>
</html>